home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Dr. Windows 3
/
dr win3.zip
/
dr win3
/
VISUALBA
/
VCC.ZIP
/
BROWSER.FRM
< prev
next >
Wrap
Text File
|
1994-02-01
|
11KB
|
374 lines
VERSION 2.00
Begin Form Form1
Caption = "Code Browser using VideoSoft VSAWK"
ClientHeight = 5415
ClientLeft = 465
ClientTop = 1200
ClientWidth = 7680
Height = 5880
Left = 375
LinkTopic = "Form1"
ScaleHeight = 5415
ScaleWidth = 7680
Top = 825
Width = 7860
Begin VideoSoftAwk VSAwk3
FS = " , "
Left = 2025
Top = 4500
End
Begin VideoSoftAwk VSAwk2
FS = " , "
Left = 1530
Top = 4500
End
Begin VideoSoftAwk VSAwk1
FS = " , "
Left = 990
Top = 4500
End
Begin CommonDialog CMDialog
Left = 450
Top = 4455
End
Begin VideoSoftElastic VSElastic1
Align = 5 'Fill Container
AutoSizeChildren= 4 'Uneven Vertical
BackColor = &H0000FF00&
BorderWidth = 0
Height = 4485
Index = 5
Left = 0
Splitter = 1 'Yes (with uneven spacing)
TabIndex = 5
Top = 930
Width = 7680
Begin VideoSoftElastic VSElastic1
AutoSizeChildren= 4 'Uneven Vertical
BackColor = &H00C0C0C0&
BorderWidth = 0
Height = 1725
Index = 1
Left = 0
Splitter = 1 'Yes (with uneven spacing)
TabIndex = 9
Top = 2760
Width = 7680
Begin VideoSoftElastic VSElastic1
AutoSizeChildren= 2 'Uneven Horizontal
BackColor = &H0000FF00&
BorderWidth = 1
Height = 1725
Index = 2
Left = 0
Splitter = 1 'Yes (with uneven spacing)
TabIndex = 12
Top = 0
Width = 7680
Begin ListBox List1
FontBold = 0 'False
FontItalic = 0 'False
FontName = "Courier New"
FontSize = 9
FontStrikethru = 0 'False
FontUnderline = 0 'False
Height = 1605
Left = 15
Sorted = -1 'True
TabIndex = 10
Top = 15
Width = 2415
End
Begin ListBox List2
FontBold = 0 'False
FontItalic = 0 'False
FontName = "Courier New"
FontSize = 9
FontStrikethru = 0 'False
FontUnderline = 0 'False
Height = 1605
Left = 2520
Sorted = -1 'True
TabIndex = 11
Top = 15
Width = 5145
End
End
End
Begin VideoSoftElastic VSElastic1
AutoSizeChildren= 4 'Uneven Vertical
BackColor = &H00C0C0C0&
BorderWidth = 0
Height = 2670
Index = 4
Left = 0
TabIndex = 6
Top = 0
Width = 7680
Begin TextBox Text1
FontBold = 0 'False
FontItalic = 0 'False
FontName = "Courier New"
FontSize = 9
FontStrikethru = 0 'False
FontUnderline = 0 'False
ForeColor = &H00FF0000&
Height = 2115
Left = 0
MultiLine = -1 'True
ScrollBars = 3 'Both
TabIndex = 7
Top = 555
Width = 7680
End
Begin VideoSoftElastic VSElastic1
BackColor = &H00000000&
BevelInnerWidth = 0
BevelOuterWidth = 0
Caption = "Visual Basic Code"
CaptionPos = 4 'Center Center
FontBold = -1 'True
FontItalic = 0 'False
FontName = "Arial"
FontSize = 13.5
FontStrikethru = 0 'False
FontUnderline = 0 'False
ForeColor = &H000000FF&
Height = 465
Index = 3
Left = 0
TabIndex = 8
Top = 0
Width = 7680
End
End
End
Begin VideoSoftElastic VSElastic3
Align = 1 'Align Top
BackColor = &H00C0C0C0&
BevelOuter = 1 'Raised
CaptionPos = 4 'Center Center
FloodColor = &H0080FFFF&
FloodDirection = 1 'Right
Height = 420
Left = 0
TabIndex = 4
Top = 510
Width = 7680
End
Begin VideoSoftElastic VSElastic1
Align = 1 'Align Top
AutoSizeChildren= 1 'Even Horizontal
BackColor = &H00C0C0C0&
BevelOuter = 1 'Raised
Height = 510
Index = 0
Left = 0
TabIndex = 3
Top = 0
Width = 7680
Begin CommandButton Command1
BackColor = &H00C0C0C0&
Caption = "&Open.."
Default = -1 'True
Height = 330
Index = 0
Left = 90
TabIndex = 0
Top = 90
Width = 2445
End
Begin CommandButton Command1
BackColor = &H00C0C0C0&
Caption = "&Print..."
Height = 330
Index = 2
Left = 5160
TabIndex = 2
Top = 90
Width = 2430
End
Begin CommandButton Command1
BackColor = &H00C0C0C0&
Caption = "&Copy"
Height = 330
Index = 1
Left = 2625
TabIndex = 1
Top = 90
Width = 2445
End
End
End
Option Explicit
Dim subtext$
' Example using nested VideoSoft VSAWK
' Projects need to be saved as TEXT be parsed by VSAWK.
' Once the project is loaded, just click on the desired
' subroutine name on list2 and the code will be place on
' the text box.
' VSElastic is used to automatically resize the form and
' for flooding status when parsing the file.
' CMDialog is used to open the file.
Sub Command1_Click (Index%)
Select Case Index
Case 0 'Open Button
' get file name
cmdialog.FileName = ""
cmdialog.DefaultExt = "MAK"
cmdialog.Filter = "VB Projects (*.mak)|*.MAK|All Files (*.*)|*.*"
cmdialog.Flags = &H1800&
cmdialog.Action = 1
If cmdialog.FileName = "" Then Exit Sub
' read project
text1 = ""
vsawk1.FileName = cmdialog.FileName
vsawk1.Tag = Left(cmdialog.FileName, Len(cmdialog.FileName) - Len(cmdialog.Filetitle))
vsawk1.Action = 0
vselastic3.FloodPercent = 0
vselastic3 = "Ready"
Case 1 ' Clipboard
If text1 = "" Then MsgBox "Sorry, no code selected": E